package org.sklse.learningassistant.util;
import java.io.Serializable;
import java.util.List;

/**
 * Created by MIC on 2017/10/21.
 */
public class BaseTreeGrid implements Serializable{
    private static final long serialVersionUID = -9189631784252440402L;

    public String chapterUid;                                   //节点id

    public String parentUid;                             //节点父id

    public String iconCls = "folder";                   //节点样式，默认即可

    public Boolean leaf = true;                         //是否为叶子节点，true表示是叶子节点，false表示不是叶子节点

    public Boolean expanded = true;                     //是否展开，默认true,展开

    public List<BaseTreeGrid> children;                 //孩子节点

    public String getChapterUid() {
        return chapterUid;
    }

    public void setChapterUid(String chapterUid) {
        this.chapterUid = chapterUid;
    }

    public String getParentUid() {
        return parentUid;
    }

    public void setParentUid(String parentUid) {
        this.parentUid = parentUid;
    }

    public String getIconCls() {
        return iconCls;
    }

    public void setIconCls(String iconCls) {
        this.iconCls = iconCls;
    }

    public Boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(Boolean leaf) {
        this.leaf = leaf;
    }

    public Boolean getExpanded() {
        return expanded;
    }

    public void setExpanded(Boolean expanded) {
        this.expanded = expanded;
    }


    public List<BaseTreeGrid> getChildren() {
        return children;
    }

    public void setChildren(List<BaseTreeGrid> children) {
        this.children = children;
    }

}
